#ifndef _COMMON_ERR_H_
#define _COMMON_ERR_H_

#ifndef S_OK
#define S_OK					0x00000000
#endif

#ifndef S_FALSE
#define S_FALSE					0x00000001
#endif

#define E_UNKNOWN				0x80000001
#define E_NULLPOINTER			0x80000002	// NULL pointer
#define E_INVALIDARG			0x80000003  // Invalid argument(s)

#define E_MEMALLOC_FAIL			0x80010001
#define E_INIT_MUTEX_FAIL		0x80010002

#define E_QUEUEISFULL			0x80050001
#define E_QUEUEISEMPTY			0x80050002
#define E_QUEUEISCLOBBERED		0x80050003
#define E_INIT_QUEUE_FAIL		0x80050004

#endif
